package com.maxt.intercept;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class Login extends HandlerInterceptorAdapter {
	
	public static final Logger logger = LoggerFactory.getLogger(Login.class);

	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
			throws Exception {
		// TODO Auto-generated method stub
		
		String url= request.getRequestURL().toString();
		logger.info("intercept_rul------>"+url);
		
		
		return super.preHandle(request, response, handler);
	}
}
